from django.urls import path

from . import (
    receipt_view,
    agency_views,
    agency_recharge_view,
    blacklist_view,
    quick_reply_view,
)

urlpatterns = [
    # 收款账户管理
    path("receipt_conf/", receipt_view.ReceiptConfView.as_view()),
    path("receipt_addresses/", receipt_view.ReceiptAddressListView.as_view()),
    path(
        "receipt_addresses/<int:receipt_id>/",
        receipt_view.ReceiptAddressDetailView.as_view(),
    ),
    path(
        "receipt_addresses/<int:receipt_id>/status/",
        receipt_view.ReceiptAddressStatusView.as_view(),
    ),
    path("login/", agency_views.LoginView.as_view()),
    path("logout/", agency_views.LogoutView.as_view()),
    path("info/", agency_views.AgencyInfoView.as_view()),
    path("account/", agency_views.AgencyView.as_view()),
    path("rank_conf/", agency_views.RankConfView.as_view()),
    path("account/<int:agency_id>/", agency_views.AgencyDetailView.as_view()),
    path("reset_password/<int:agency_id>/", agency_views.ResetPasswordAgency.as_view()),
    path("go_to_work/", agency_views.GoToWork.as_view()),
    path("go_off_work/", agency_views.GoOffWork.as_view()),
    path("reset_my_password/", agency_views.ResetMyPassword.as_view()),
    # im 集成
    path("im/token/", agency_views.IMTokenView.as_view()),
    # 代理充值
    path(
        "apply_recharge/", agency_recharge_view.ChildAgencyRechargeOrderView.as_view()
    ),
    path("my_recharge/", agency_recharge_view.MyRechargeOrderView.as_view()),
    path(
        "recharge_order/<int:order_id>/agree/",
        agency_recharge_view.AgencyRechargeAgreeView.as_view(),
    ),
    path(
        "recharge_order/<int:order_id>/refuse/",
        agency_recharge_view.AgencyRechargeRefuseView.as_view(),
    ),
    path(
        "recharge_order/<int:order_id>/chase/",
        agency_recharge_view.OrderChaseView.as_view(),
    ),
    # 黑名单
    path("blacklist/", blacklist_view.BlackListView.as_view()),
    path("blacklist/<int:blacklist_id>/", blacklist_view.BlackDetailView.as_view()),
    # 代理充值报表
    path("receipt_report/", agency_recharge_view.RechargeReportListView.as_view()),
    path("agency_daily_report/", agency_recharge_view.AgencyDailyReportView.as_view()),
    # 代理快捷回复
    path("quick_reply/", quick_reply_view.QuickReplyListViewListView.as_view()),
    path(
        "quick_reply/<int:quick_reply_id>/",
        quick_reply_view.QuickReplyDetailView.as_view(),
    ),
    # 投诉
    path("complain/", agency_views.ComplaintView.as_view()),
    path("get_agency_stats_report/", agency_views.AgencyStatsReportView.as_view()),
]
